package com.swsc.xapp.activity.errorActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.swsc.xapp.R;
import com.swsc.xapp.baseContent.BaseActivity;
import com.swsc.xapp.utils.ConstantUils;

public class NetWorkAvtivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_net_work_avtivity);
        Button mRefreshButton = (Button) findViewById(R.id.refresh_btn);
        TextView mErrorTextView = (TextView) findViewById(R.id.error_tip);
        mErrorTextView.setText(ConstantUils.stringTip);
        mRefreshButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                setResult(20024, intent);
                finish();
            }
        });
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        return false;
    }

}
